/**
 * desc: 首页接口
 */

import request from '@/static/uitls/request.js'

// 首页轮播图
const getIndexBannerList = () => {
	const app = getApp();
	return request({
		url: '/api/v1/banner',
		method: 'GET'
	})
}


// 首页语种
const getIndexLangeList = () => {
	const app = getApp();
	return request({
		url: '/api/v1/language',
		method: 'GET'
	})
}


// 首页可语分享(文章)
const getIndexArticleList = () => {
	const app = getApp();
	return request({
		url: '/api/v1/article',
		method: 'GET'
	})
}

// 首页课程
const getIndexCourseList = () => {
	const app = getApp();
	  return request({
		url: '/api/v1/teacher/course',
		method: 'GET'
	  })
}

module.exports = {
	getIndexBannerList,
	getIndexLangeList,
	getIndexArticleList,
	getIndexCourseList
}
